package com.jht.btconnect.ui;

import androidx.appcompat.app.AppCompatActivity;

import android.content.pm.PackageManager;
import android.os.Bundle;
import android.widget.Toast;

import com.jht.btconnect.BTApp;
import com.jht.btconnect.R;
import com.jht.btconnect.common.AppUtil;

public class SplashActivity extends BaseActivity {
    private String TAG = getClass().getSimpleName();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);

        if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {
            Toast.makeText(this, R.string.ble_not_supported, Toast.LENGTH_SHORT).show();
            finish();
            return;
        }
        AppUtil.launchBTDeviceUI(BTApp.getAppContext());
        finish();
    }

}
